package cn.stylefeng.guns.modular.basic.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.basic.entity.BasicCostStandardConf;
import cn.stylefeng.guns.modular.basic.model.params.BasicCostStandardConfParam;
import cn.stylefeng.guns.modular.basic.model.result.BasicCostStandardConfResult;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 成本标准配置表 服务类
 * </p>
 *
 * @author zhangzh
 * @since 2024-05-08
 */
public interface BasicCostStandardConfService extends IService<BasicCostStandardConf> {

    /**
     * 新增
     *
     * @author zhangzh
     * @Date 2024-05-08
     */
    void add(BasicCostStandardConfParam param);

    /**
     * 删除
     *
     * @author zhangzh
     * @Date 2024-05-08
     */
    void delete(BasicCostStandardConfParam param);

    /**
     * 更新
     *
     * @author zhangzh
     * @Date 2024-05-08
     */
    void update(BasicCostStandardConfParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhangzh
     * @Date 2024-05-08
     */
    BasicCostStandardConfResult findBySpec(BasicCostStandardConfParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhangzh
     * @Date 2024-05-08
     */
    List<BasicCostStandardConfResult> findListBySpec(BasicCostStandardConfParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhangzh
     * @Date 2024-05-08
     */
     LayuiPageInfo findPageBySpec(BasicCostStandardConfParam param, String condition);


    /**
     * 查询全部数据
     *
     * @author zhangzh
     * @Date 2024-05-08
     */
    List<BasicCostStandardConfResult> findAll(BasicCostStandardConfParam param, String condition);

    /**
     * 数据导入
     * @param file
     * @param basicCostStandardConfParam
     * @param data
     * @return
     * @throws Exception
     */
    ResponseData getExceldata(MultipartFile file, BasicCostStandardConfParam basicCostStandardConfParam, ResponseData data) throws Exception;

}
